﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GlassStore.ViewModels.GlassBrowseViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	眼镜浏览
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div align="center">
    <table class="glass-main">
        <tr>
            <td>
                <% Html.RenderPartial("SearchForm"); %>
                <% Html.RenderAction("CatalogueMenu", "Glass"); %>
            </td>
            <td>
                <% Html.RenderAction("PropertyMenu", "Glass"); %>
                <% if (Model.Glasses.Count() == 0)
                   { %>
                   <br />抱歉，没有找到您需要的眼镜。
                <% }
                   else
                   { %>
                <%--<%: Model.SubCatalogue.Name %>--%>
                <% Html.RenderPartial("GlassList", Model.Glasses); %>
                <div id="glass-list-pager"><%: MvcHtmlString.Create(Html.Pager(Model.Index, Model.Total, string.Format("/Glass/Browse?cId={0}&id=", Model.SubCatalogue.SubCatalogueId)))%></div>
                <% } %>
            </td>
        </tr>
    </table>
</div>
</asp:Content>

